Skip to content

test(studio): the preview regression passes on macOS - #8484

Merged
miguel-heygen merged 1 commit into
mainfrom
test/regression-mac-cover-count
Nov 22, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
test/regression-mac-cover-count

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

preview-video-regression.mjs checks that Studio's decoded paused-frame covers are gone (after play, and in the native-delivery steps) by counting [data-hf-preview-video-canvas]. It now counts canvas[data-hf-preview-video-canvas], so the script passes on macOS as it does on Linux. Test only.

Why

On macOS Chromium the runtime also adds a 0x0, hidden SVG holding the gamma filter that makes a cover look like the browser's video layer (nativeVideoLook.ts). That SVG carries the same mark so saved source strips it, and it stays in the page after the covers clear. So on macOS the count never reaches 0, and the script times out after play ("Waiting failed: 30000ms exceeded"). Linux never adds the SVG, which is why CI passes. Every real cover does clear on play: checked in a headed and a headless Chrome on macOS.

Test plan

No visible change

Only the end-to-end script changes; nothing a person sees in Studio.

Related work

Refs #8466, Refs #8470.

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve.

Need ✅ · Size ✅ (+3/−3, one e2e script) · Reuse ✅ · Simpler ✅ · Structure ✅
Risk: none to the product. Only the regression script changes, and on Linux the narrower selector matches the same covers.

Checked at c9cd229. The extra element is the runtime's own native-video-look filter holder, not something Chromium adds. Where nativeVideoLookNeeded() is true, nativeVideoLook.ts:39-41 appends a single shared <svg width="0" height="0"> carrying data-hf-preview-video-canvas. It carries the attribute so that authoredSource.ts:145 strips it on save. That holder is meant to stay, so the cover checks should count only canvas[data-hf-preview-video-canvas], the paused-frame stand-ins pausedVideoFrames.ts:185 creates. All three checks are narrowed consistently. The preview-regression and Preview parity CI steps pass.

Nit: the body attributes the SVG to macOS Chromium. It's the runtime's ensureFilter (nativeVideoLook.ts:31), present wherever the native look is needed.

— Rames (hf-review)

@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 1548428 Nov 22, 2026
75 of 77 checks passed
@miguel-heygen
miguel-heygen deleted the test/regression-mac-cover-count branch November 22, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants